/*
 * @Author: TLL
 * @Date: 2020-10-13 09:45:06
 * @version: v1.1
 * @Descripttion: 
 * @LastEditors: yangzonglong
 * @LastEditTime: 2020-10-13 15:40:26
 * @Auditor: TLL
 */

export interface ISelected {
  label: string;
  value: string;
}

// export type FormxChange = (value: string | string[], id: string) => void;
// export type SelectChange = (selected: ISelected | ISelected[], option: Record<string, any>) => void;

export interface AutoCompleteProps extends Record<string, any> {
  value?: string;
  id?: string, // antd form 受控状态, 请勿手动指定
  cacheKey?: string,
  url?: string;
  query?: object;
  fieldNames?: ISelected;
  onChange?: any;
  extra?: string[], // 额外输出的key
}